package com.itheima.mytext10;

public class Demo {
    public static void main(String[] args) {

        Cook t1=new Cook();
        Foodie t2=new Foodie();

        t1.setName("厨师");
        t2.setName("吃货");

        t1.start();
        t2.start();
    }
}
